<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        var name = prompt('姓名');
        if (name == '刘德华'){
            alert('中奖');
        }else{
            alert('无');
        }
    </script>
</head>
<body>

</body>
</html>